import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect:'/login'
    },
    {
     path:'/login',
     component:()=>import("../views/LoginView.vue")
    },
    {
      //优惠券的列表
      path:'/discount',
      component:()=>import("../views/DiscountView.vue")
    },
    {
      //增加优惠券
      path:'/addDiscount',
      component:()=>import("../views/AddDiscountView.vue")
    },
    {
      //会员展示
      path:'/member',
      component:()=>import("../views/MemberView.vue")
    },
    {
      //有效的优惠券展示
      path:'/validDiscount',
      component:()=>import("../views/ValidDiscountView.vue")
    },
    {
      //会员登录
      path:'/memberLogin',
      component:()=>import("../views/MemberLoginView.vue")
    },
    {
      //会员详情
      path:'/memberInfo',
      component:()=>import("../views/MemberInfoView.vue")
    },
    //------------------------------------------------------------------
    {
      //房型增加
      path:'/houseTypeAdd',
      component:()=>import("../views/month/HouseTypeAddView.vue")
    },
    {
      //房型的列表
      path:'/houseTypeList',
      component:()=>import("../views/month/HouseTypeListView.vue")
    },
    {
      //房间号的增加
      path:'/houseNoAdd',
      component:()=>import("../views/month/HouseNoAddView.vue")
    },
    {
      //房间号列表
      path:'/houseNoList',
      component:()=>import("../views/month/HouseNoListView.vue")
    }
  ]
})

export default router
